Skip to content

Fix(tests): Track storage usage in AuroraRunner#85

Merged
birchmd merged 1 commit intotest_self_destructfrom
fix-aurora-runner
May 14, 2021
Merged

Fix(tests): Track storage usage in AuroraRunner#85
birchmd merged 1 commit intotest_self_destructfrom
fix-aurora-runner

Conversation

@birchmd
Copy link
Copy Markdown
Member

@birchmd birchmd commented May 13, 2021

In #84 Marcelo encountered an error due to underflow resulting from releasing storage that was not properly tracked. This PR fixes that issue.

Note: the issue is only in the testing framework, it does not impact any production code.

@birchmd birchmd requested review from artob and mfornet May 13, 2021 15:50
@birchmd birchmd added the C-bug Category: Something isn't working. label May 13, 2021
@mfornet
Copy link
Copy Markdown
Contributor

mfornet commented May 14, 2021

Did you check that test from #84 was working? in that case I'll rebase on top of develop once this is merged! :)

@mfornet mfornet changed the base branch from develop to test_self_destruct May 14, 2021 11:54
@mfornet
Copy link
Copy Markdown
Contributor

mfornet commented May 14, 2021

Changed target branch to test_self_destruct so we can merge them together with CI green. If you are ok with this approach, please merge.

Copy link
Copy Markdown
Contributor

@joshuajbouw joshuajbouw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good here.

@birchmd birchmd merged commit aaf1ed9 into test_self_destruct May 14, 2021
@birchmd birchmd deleted the fix-aurora-runner branch May 14, 2021 12:44
mfornet added a commit that referenced this pull request Jun 10, 2021
* Add tests for state check after selfdestruct

* Aurora runner tracks storage usage to avoid underflow when storage is released in future transactions (#85)

* Implement generational storage (#87)

* Base precompile code between connectors (#73)

* Base precompile code between connectors

* Handle errors and validate input

* Use proper result

* Document `aurora encode-address` usage.

* Cache cargo artifacts between CI runs. (#92)

* Address comments from audit. (#86)

* Validate register length in `read_input_arr20()`
* Only read register length in `Engine::get_code_size`
* Add `read_input_borsh()`
* Ensure `method.args.len() == args_decoded.len()`
* Ensure register size is 8 in `read_u64`
* Use constant to specify the register ID used in `read_input()`

* Reduce size of `cargo cache` in CI. (#95)

* Define a `Wei` newtype for balances. (#96)

* Fix evm-bully builds after recent refactoring. (#100)

* Refactor `Engine::get_state` to return a `Result`. (#99)

* Ensure that `Cargo.lock` in the repo is valid. (#101)

* Remove unneeded nightly feature. (#102)

* Implement BC generational storage.

* fix address input

* remove note

* put key on the end of the storage key

* remove pub from methods

* Dispatch precompiles on the full address. (#107)

* Support state migration on upgrade. (#103)

* Implement the ETH connector. (#59)

* Move when to call `set_generation`

* Fix arg

Co-authored-by: Marcelo Fornet <mfornet94@gmail.com>
Co-authored-by: Arto Bendiken <arto@aurora.dev>
Co-authored-by: Michael Birch <michael@near.org>
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
Co-authored-by: Evgeny Ukhanov <mrlsd@ya.ru>

* Fix layout of the key

* Fix all tests (don't wipe the storage all the time)

* Use correct generation in writing storage

* Remove unnecessary references

Co-authored-by: Michael Birch <michael@near.org>
Co-authored-by: Joshua J. Bouw <dev@joshuajbouw.com>
Co-authored-by: Arto Bendiken <arto@aurora.dev>
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
Co-authored-by: Evgeny Ukhanov <mrlsd@ya.ru>
Co-authored-by: Michael Birch <michael.birch@aurora.dev>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C-bug Category: Something isn't working.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants